{foreach from =$WEB_APP.categories item=category key=category_name}
{if count($category) > 0}
<table width="190" border="0" cellspacing="0" cellpadding="0">
	<tr valign="top" bgcolor="#D2DCE5">
		<td class="leftborder"><img src="{$WEB_APP.images_dir}btlg.gif" alt = ""></td>
		<td class="sidebartitle">{$text[$category_name]}</td>
		<td class = "rightborder"><img src="{$WEB_APP.images_dir}btrg.gif" alt = ""></td>
	</tr>
	<tr>
		<td class = "leftborder"></td>
		<td class = "sidebarcontent">
			<ul>{foreach from=$category item=module name=modules_loop}
				<li>
					<a href="{$WEB_APP.cfg_url}?module={$module.module}">
					{if basename($WEB_APP.module) eq $module.module}<strong>{/if}
					{if isset($text[$module.module_name]) eq TRUE}{$text[$module.module_name]}{else}{$module.module_name}{/if}
					{if basename($WEB_APP.module) eq $module.module}</strong>{/if}
					</a>
				</li>
			{/foreach}</ul>
		</td>
		<td class = "rightborder"></td>
	</tr>
	<tr>
		<td><img src="{$WEB_APP.images_dir}bbl.gif" alt = ""></td>
		<td class="bottomborder"></td>
		<td><img src="{$WEB_APP.images_dir}bbr.gif" alt = ""></td>
	</tr>
</table>
<br>	
{/if}
{/foreach}
